package org.dromara.dp.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 节点信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NodeVo {

    public NodeVo(Long nodeId, String nodeName, Integer nodeType) {
        this.nodeId = nodeId;
        this.nodeName = nodeName;
        this.nodeType = nodeType;
    }

    public NodeVo(Long nodeId, String nodeName, Integer nodeType, String code, String content1, String content2) {
        this.nodeId = nodeId;
        this.nodeName = nodeName;
        this.nodeType = nodeType;
        this.code = code;
        this.content1 = content1;
        this.content2 = content2;
    }

    /**
     * 节点id
     */
    private Long nodeId;

    /**
     * 节点名称
     */
    private String nodeName;

    /**
     * 节点类型 1.始发事件 2.预防性屏障 3.顶上事件 4.削减性屏障 5.后果
     */
    private Integer nodeType;

    /**
     * 编码
     */
    private String code;

    /**
     * 内容1
     */
    private String content1;

    /**
     * 内容2
     */
    private String content2;

    /**
     * 最大初始风险
     */
    private String maxInitValue;

    /**
     * 最大初始风险等级
     */
    private Integer maxInitLevel;

    /**
     * 最大残余风险
     */
    private String maxCanyuValue;

    /**
     * 剩余风险等级
     */
    private Integer maxCanyuLevel;

    /**
     * 基准值
     */
    private List<String> baseValues;
}
